package com.aoip.telemetry.telemetry.configureui.business.common.ad.service.impl;

import com.aoip.telemetry.telemetry.configureui.business.common.ad.mapper.AttAdBaseMapper;
import com.aoip.telemetry.telemetry.configureui.business.common.ad.service.AttAdBaseService;
import com.aoip.telemetry.telemetry.entity.common.AttAdBaseEntity;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author chenbai
 * @date 2022/02/09
 * @version 1.0
 */
@Service
public class AttAdBaseServiceImpl implements AttAdBaseService {
    @Resource
    private AttAdBaseMapper mapper;

    @Override
    public List<AttAdBaseEntity> regionDataPlusList() {
        QueryWrapper<AttAdBaseEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.orderBy(false, true, "ad_code");
        return mapper.selectList(queryWrapper);
    }

    @Override
    public List<AttAdBaseEntity> getAdNameList(String adcodes) {
        return null;
    }

}
